package com.aaa.project2;

import com.aaa.project2.Meth;
import org.junit.Test;

public class JavaTest {
    /*排序*/
    @Test
    public void test1(){
        int [] arr={8,9,6,3,2};
        Meth.sort(arr);
        for (int i = 0; i <arr.length ; i++) {
            System.out.println(arr[i]);
        }
    }
    /*最大值*/
    @Test
    public void test2() {
        int[] arr = {8, 9, 6, 3, 2};
        int b =Meth.Max(arr);
        System.out.println(b);
    }
    /*索引*/
    @Test
    public void test3(){
        int [] arr={8,9,6,3,2};
      int b = com.aaa.project2.Meth.indexOff(arr,8);
        System.out.println(b);

    }
    /*字符串拼接*/
    @Test
    public void test4(){
        int [] arr={8,9,6,3,2};
       String b = com.aaa.project2.Meth.MyString(arr);
        System.out.println(b);
    }
    /*判断是否否一致*/
    @Test
    public void test(){
        int [] arr={8,9,6,3,2};
        int[] arr1={54455};

        String b = com.aaa.project2.Meth.yizi(arr,arr1);
        System.out.println(b);
    }
}
